#-------------------------------------------------------------------
# This file is part of the CMake build system for ogre-url
#-------------------------------------------------------------------

if (NOT SETUP_OGREURL_BUILD_DEMO)
	return ()
endif (NOT SETUP_OGREURL_BUILD_DEMO)

# customize
option (SETUP_COPY_DEMO_RESOURCES "Copy resources to the build directory" TRUE)

# exit if nothing to do
if (NOT SETUP_COPY_DEMO_RESOURCES)
	return ()
endif (NOT SETUP_COPY_DEMO_RESOURCES)

#  macroses
include (Macros)

message (STATUS "Coping resources...")

# preparing comments for ogre components
comment_ogre_component (RenderSystem_Direct3D9)
comment_ogre_component (RenderSystem_Direct3D10)
comment_ogre_component (RenderSystem_Direct3D11)
comment_ogre_component (RenderSystem_GL)
comment_ogre_component (RenderSystem_GLES)

# set media folder
set (OgreURL_Media_Dir "${CMAKE_HOME_DIRECTORY}/Media")

# set test url
set (OgerURL_Test_URL "${SETUP_OGREURL_DEMO_TEST_URL}")

# cretae config files
create_config (plugins .cfg)
create_config (resources .cfg)
